﻿namespace Magic.System;

public interface ISysUserService
{
    /// <summary>
    /// 分页获取管理员
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task<SugarPagedList<SysUserPageItem>> GetPageList(BasePageInput page,SysUserPageInput input);

    /// <summary>
    /// 根据id返回管理员
    /// </summary>
    /// <param name="id"></param>
    /// <returns></returns>
    Task<SysUserDetailOutput> Get(int id);
    /// <summary>
    /// Admin新增输入
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task Add(AddSysUserInput input);
    /// <summary>
    /// 删除Admin
    /// </summary>
    /// <param name="id"></param>
    /// <returns></returns>
    Task Delete(List<int> ids);
    /// <summary>
    /// 编辑Admin
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task Edit(EditSysUserInput input);
}
